package com.xuelang.pipeline.worker.client.namespace;

import com.xuelang.pipeline.worker.client.common.result.ApiResult;
import com.xuelang.pipeline.worker.client.namespace.dto.NamespaceDTO;
import com.xuelang.pipeline.worker.client.namespace.dto.NamespaceQueryDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import jakarta.validation.Valid;
import java.util.List;

/**
 * @author liuyuan.ly
 * @since 2024/5/16 15:25
 */


public interface INamespaceService {

    @PostMapping(value = "/get/namespace/list", produces = "application/json;charset=utf-8")
    ApiResult<List<NamespaceDTO>> getNamespace(@RequestBody  @Valid NamespaceQueryDTO queryDTO);

    @PostMapping(value = "/create/namespace", produces = "application/json;charset=utf-8")
    ApiResult<Boolean> createNamespace(@RequestBody  @Valid NamespaceQueryDTO queryDTO);

    @PostMapping(value = "/delete", produces = "application/json;charset=utf-8")
    ApiResult<Boolean> deleteNamespace(NamespaceQueryDTO queryDTO);
}
